/*
 * @Author: weisheng
 * @Date: 2025-06-23 22:23:05
 * @LastEditTime: 2025-06-27 13:04:54
 * @LastEditors: weisheng
 * @Description:
 * @FilePath: /wot-demo/pages.config.ts
 * 记得注释
 */
import { defineUniPages } from '@uni-helper/vite-plugin-uni-pages'

export default defineUniPages({
  pages: [],
  globalStyle: {
    // 导航栏配置
    navigationBarBackgroundColor: '@navBgColor',
    navigationBarTextStyle: '@navTxtStyle',
    navigationBarTitleText: 'Wot-Demo',

    // 页面背景配置
    backgroundColor: '@bgColor',
    backgroundTextStyle: '@bgTxtStyle',
    backgroundColorTop: '@bgColorTop',
    backgroundColorBottom: '@bgColorBottom',

    // 下拉刷新配置
    enablePullDownRefresh: false,
    onReachBottomDistance: 50,

    // 动画配置
    animationType: 'pop-in',
    animationDuration: 300,
  },
  tabBar: {
    custom: true,
    // #ifdef MP-ALIPAY
    customize: true,
    // 暂时不生效。4.71.2025061206-alpha已修复：https://uniapp.dcloud.net.cn/release-note-alpha.html#_4-71-2025061206-alpha，我们等正式版发布后更新。
    overlay: true,
    // #endif
    height: '0',
    color: '@tabColor',
    selectedColor: '@tabSelectedColor',
    backgroundColor: '@tabBgColor',
    borderStyle: '@tabBorderStyle',
    list: [
      {
        pagePath: 'pages/index/index',
        text: '首页'
      },
      {
        pagePath: 'pages/category/index',
        text: '分类'
      },
      {
        pagePath: 'pages/cart/index',
        text: '购物车'
      },
      {
        pagePath: 'pages/user/index',
        text: '我的'
      }
    ]
  },
  subPackages: [
    {
      root: 'subPages',
      pages: [
        {
          path: 'styles/index',
          style: {
            navigationBarTitleText: 'UnoCSS 演示'
          }
        }
      ]
    },
    {
      root: 'subPackages/user-package',
      pages: [
        {
          path: 'order/list',
          style: {
            navigationBarTitleText: '我的订单'
          }
        },
        {
          path: 'address/list',
          style: {
            navigationBarTitleText: '收货地址'
          }
        },
        {
          path: 'address/edit',
          style: {
            navigationBarTitleText: '编辑地址'
          }
        },
        {
          path: 'favorite/list',
          style: {
            navigationBarTitleText: '我的收藏'
          }
        },
        {
          path: 'coupon/list',
          style: {
            navigationBarTitleText: '优惠券'
          }
        },
        {
          path: 'setting/index',
          style: {
            navigationBarTitleText: '设置'
          }
        },
        {
          path: 'profile/index',
          style: {
            navigationBarTitleText: '个人资料'
          }
        },
        {
          path: 'security/index',
          style: {
            navigationBarTitleText: '账号安全'
          }
        },
        {
          path: 'profile/phone',
          style: {
            navigationBarTitleText: '绑定手机'
          }
        },
        {
          path: 'profile/email',
          style: {
            navigationBarTitleText: '绑定邮箱'
          }
        },
        {
          path: 'profile/password',
          style: {
            navigationBarTitleText: '修改密码'
          }
        },
        {
          path: 'points-mall/index',
          style: {
            navigationBarTitleText: '积分商城',
            navigationStyle: 'custom'
          }
        },
        {
          path: 'points-rules/index',
          style: {
            navigationBarTitleText: '积分规则',
            navigationStyle: 'custom'
          }
        },
        {
          path: 'points-history/index',
          style: {
            navigationBarTitleText: '积分记录',
            navigationStyle: 'custom'
          }
        }
      ]
    },
    {
      root: 'subPackages/product-package',
      pages: [
        {
          path: 'goodsDetail/index',
          style: {
            navigationBarTitleText: '商品详情'
          }
        },
        {
          path: 'search/index',
          style: {
            navigationBarTitleText: '搜索'
          }
        },
        {
          path: 'flash-sale/index',
          style: {
            navigationBarTitleText: '限时抢购',
            navigationStyle: 'custom'
          }
        }
      ]
    },
    {
      root: 'subPackages/common-package',
      pages: [
        {
          path: 'feedback/index',
          style: {
            navigationBarTitleText: '全局反馈'
          }
        }
      ]
    },
    {
      root: 'subPackages/game-package',
      pages: [
        {
          path: 'list/index',
          style: {
            navigationBarTitleText: '趣味小游戏'
          }
        },
        {
          path: 'spin-wheel/index',
          style: {
            navigationBarTitleText: '签到转盘'
          }
        },
        {
          path: 'sliding-puzzle/index',
          style: {
            navigationBarTitleText: '数字华容道'
          }
        },
        {
          path: 'match-three/index',
          style: {
            navigationBarTitleText: '消消乐'
          }
        },
        {
          path: 'guess-price/index',
          style: {
            navigationBarTitleText: '猜价格'
          }
        },
        {
          path: 'jigsaw-puzzle/index',
          style: {
            navigationBarTitleText: '拼图游戏'
          }
        },
        {
          path: 'spot-difference/index',
          style: {
            navigationBarTitleText: '找不同'
          }
        },
        {
          path: 'memory-card/index',
          style: {
            navigationBarTitleText: '记忆翻牌'
          }
        },
        {
          path: 'link-match/index',
          style: {
            navigationBarTitleText: '连连看'
          }
        },
        {
          path: 'game-2048/index',
          style: {
            navigationBarTitleText: '2048商品价格版'
          }
        },
        {
          path: 'whack-mole/index',
          style: {
            navigationBarTitleText: '打地鼠'
          }
        },
        {
          path: 'shooting-game/index',
          style: {
            navigationBarTitleText: '射击游戏'
          }
        },
        {
          path: 'parkour-game/index',
          style: {
            navigationBarTitleText: '跑酷游戏'
          }
        },
        {
          path: 'racing-game/index',
          style: {
            navigationBarTitleText: '赛车游戏'
          }
        },
        {
          path: 'ring-toss-game/index',
          style: {
            navigationBarTitleText: '套圈游戏'
          }
        },
        {
          path: 'coloring-game/index',
          style: {
            navigationBarTitleText: '涂色游戏'
          }
        },
        {
          path: 'typing-game/index',
          style: {
            navigationBarTitleText: '速度打字'
          }
        },
        {
          path: 'reaction-game/index',
          style: {
            navigationBarTitleText: '反应速度测试'
          }
        },
        {
          path: 'memory-game/index',
          style: {
            navigationBarTitleText: '记忆力挑战'
          }
        },
        {
          path: 'math-game/index',
          style: {
            navigationBarTitleText: '计算挑战'
          }
        },
        {
          path: 'invite-help-game/index',
          style: {
            navigationBarTitleText: '邀请助力'
          }
        },
        {
          path: 'cashback-game/index',
          style: {
            navigationBarTitleText: '拼多多返现游戏'
          }
        },
        {
          path: 'cash-wheel/index',
          style: {
            navigationBarTitleText: '现金大转盘'
          }
        },
        {
          path: 'free-product/index',
          style: {
            navigationBarTitleText: '助力免费领商品'
          }
        },
        {
          path: 'team-challenge/index',
          style: {
            navigationBarTitleText: '团队挑战赛'
          }
        },
        {
          path: 'red-packet-rain/index',
          style: {
            navigationBarTitleText: '社交红包雨'
          }
        }
      ]
    }
  ],
})
